Metaclass provides type inspection mechanism for Kanzi classes. More...
Classes | |
class | Iterator |
enum | Mode |
Enumeration used to track ownership. More... | |
Public Member Functions | |
Metaclass (String name) | |
Creates a new metaclass. | |
void | addMessageType (MessageType< MessageArgumentType > messageType) |
Adds a message type. | |
void | addNestedMetaclass (Metaclass nestedMetaclass) |
Adds a nested metaclass. | |
void | addPropertyType (PropertyType< TDataType > propertyType) |
Adds a property type. | |
ObjectRef< ObjectType > | create (Domain domain, String name) |
Create an instance of the class described by the metaclass. | |
boolean | equals (Object object) |
Metaclass | getBase () |
Returns the metaclass of the base class. | |
String | getName () |
Returns the fully qualified name of this metaclass. | |
long | getNative () |
Gets a pointer to the backing C++ instance. | |
int | hashCode () |
boolean | isAbstract () |
Returns whether the metaclass is abstract or not. | |
Iterable< AbstractMessageType > | iterateMessageTypes () |
Gets an Iterable object used to iterate the message types of the metaclass. | |
Iterable< Metaclass > | iterateNestedMetaclass () |
Gets an Iterable object used to iterate the nested metaclasses of the metaclass. | |
Iterable< AbstractPropertyType > | iteratePropertyTypes () |
Gets an Iterable object used to iterate the property types of the metaclass. | |
Static Public Member Functions | |
static MetaclassWrapper | getWrapper (Metaclass metaclass) |
Gets a wrapper for a Metaclass object. | |
Metaclass provides type inspection mechanism for Kanzi classes.
Classes deriving from Object can register information about their type, properties, methods, messages by using Metaclass and accompanying macros. Such information is used by serialization, scripting and to display friendly type information in Kanzi Studio.
Metaclass | ( | String | name | ) |
Creates a new metaclass.
When registered, Kanzi automatically finds the owning class, based on the location of the Metaclass instance.
name | Fully qualified name of the metaclass. |
void addMessageType | ( | MessageType< MessageArgumentType > | messageType | ) |
Adds a message type.
messageType | Message type to be added. |
Adds a nested metaclass.
nestedMetaclass | Nested metaclass to be added. |
void addPropertyType | ( | PropertyType< TDataType > | propertyType | ) |
Adds a property type.
propertyType | Property type to be added. |
ObjectRef< ObjectType > create | ( | Domain | domain, |
String | name ) |
Create an instance of the class described by the metaclass.
domain | The domain to use for the created object. |
name | The name of the created object. |
Metaclass getBase | ( | ) |
Returns the metaclass of the base class.
String getName | ( | ) |
Returns the fully qualified name of this metaclass.
long getNative | ( | ) |
Gets a pointer to the backing C++ instance.
Gets a wrapper for a Metaclass object.
metaclass | The Metaclass object to wrap. |
boolean isAbstract | ( | ) |
Returns whether the metaclass is abstract or not.
Iterable< AbstractMessageType > iterateMessageTypes | ( | ) |
Gets an Iterable object used to iterate the message types of the metaclass.
Gets an Iterable object used to iterate the nested metaclasses of the metaclass.
Iterable< AbstractPropertyType > iteratePropertyTypes | ( | ) |
Gets an Iterable object used to iterate the property types of the metaclass.